import request from '@/utils/request'

export function getCart(params) {
  return request({
    url: '/cart',
    method: 'get',
    params
  })
}

export function getGoods(params) {
  return request({
    url: '/goods',
    method: 'get',
    params
  })
}

export function delGoods(data) {
  return request({
    url: '/cart/deleteByName',
    method: 'post',
    data
  })
}
